extends "../calxmx_1/calxmx_1.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "大师兔"                   # 角色的名称
	lv = 3
	addSkillTxt("[花弄影]攻击随机3个敌方亚比，造成180%木系魔法伤害，附带3层<混乱>[CD:11]")
	addCdSkill("hny",10)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "hny":
		var chas = utils.getRndEnemy(self)
		for i in range(3):
			yield(reTimer(0.2),"timeout")
			var cha:Chara = chas
			fx(cha)

func fx(cha):
	var d:Eff = newEff("sk_feiDang",sprcPos)
	d._initFlyCha(cha)
	yield(d,"onReach")
	typeHurtCha(cha,att.mgiAtk*1.8,Chara.HurtType.MGI,Chara.AtkType.SKILL)
	cha.addBuff(bf.hunluan.new(3))
